*,
::before,
::after {
  box-sizing: border-box;
  border-color: currentcolor;
  border-style: solid;
  border-width: 0;
}
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  text-size-adjust: none;
}

/** 设置默认字体 **/
html,
body,
button,
select,
textarea,
input,
label,
option,
fieldset,
legend {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  color: var(--foreground);
}

/* 设置margin和padding为0 */
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  cursor: pointer;
}

a:hover {
  color: inherit;
  text-decoration: none;
  outline: none;
}

a:link {
  text-decoration: none;
}

ul,
ol,
li {
  list-style: none;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

fieldset {
  border: 0;
}

address,
caption,
cite,
code,
dfn,
em,
th,
var,
i {
  font-style: normal;
  font-weight: normal;
}

caption,
th {
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

input,
textarea {
  outline: none;
}

textarea {
  overflow: auto;
  resize: none;
}

em {
  font-style: normal;
}

small {
  font-size: 12px;
} /* 小于 12px 的中文很难阅读, 让 small 正常化 */
input[type='submit'],
input[type='reset'],
input[type='button'],
input[type='date'],
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  appearance: none;
}

input[type='number'] {
  appearance: textfield;
}

button,
select {
  appearance: none;
}

img {
  border: 0;
  border-style: none;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
  display: block;
}

button {
  outline-style: none;
  background: none;
  border: none;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  caret-color: var(--foreground);
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: var(--foreground);
}
input::placeholder,
textarea::placeholder {
  color: var(--foreground-placeholder);
}
